<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>百度_全体</title>
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    <style>
        body {
            max-width: 800px;
            margin: 0 auto;
        }

        #box {
            width: 100%;
        }

        #ifr {
            width: 100%;
            height: 1500px;
        }

        button {
            margin-right: 5px;
            margin-bottom: 5px;
        }
        .btn-grounp button{
            width: 120px;
            font-size: 18px;
            height: 40px;
        }
        .btn-grounp button.sot{
            width: 50px;
        }
        .btn-grounp button.long{
            width: 170px;
        }
        .dsnone{
            display: none;
        }
        .div-fixed2{
            position: fixed;
            right: 5px;
            top:40%;
            z-index: 999;
            text-align: center;
        }
        .div-fixed2 button{
            width: 76px;
            font-size: 14px;
            height: 45px;
        }
        .btnhide1{
            display: none;
        }
    </style>
</head>

<body>
    <div id="box">
        <div id="start" style="display:none;">开始时间：</div>
        <div id="end" style="display:none;">结束时间：</div>
        <!--<div>当前对战ID：-->
        <!--    <span id="pkid"></span>-->
        <!--</div>-->
        <!--<div>已挑战人数：-->
        <!--    <span id="pknum"></span>-->
        <!--</div>-->
        <!--<div>当前挑战人数：-->
        <!--    <span id="sunum"></span>-->
        <!--</div>-->
        <!--<div>总人数：-->
        <!--    <span id="sunums"></span>-->
        <!--</div>-->
        <!--<br>-->
        <div class="btn-grounp" style="margin-top:5px;">
            <button type="button" onclick="window.location.reload()">刷新</button>
            <!--<button type="button" onclick="startFun51()">秘钥0-30</button>-->
            <button type="button" onclick="startFun4()">停止</button>
            <button type="button" onclick="startFun30()">送锄头</button>
            <br />
            <button type="button" onclick="startFun17()">家族签到</button>
            <button type="button" onclick="startFun18()">精武签到</button>
            <button type="button" onclick="startFun19()">花园签到</button>
            <button type="button" onclick="startFun191()">花园签到2</button>
            <button type="button" onclick="startFun31()">宅子签到</button>
            <br />
            <button type="button" onclick="startFun20()">回家园</button>
            <button type="button" onclick="startFun21()">回家族</button>
            <button type="button" onclick="startFun22()">拥抱</button>
            <button class="btnhide btnhide1" type="button" onclick="startFun23()">财神</button>
            <button type="button" onclick="startFun29()">小号族斗</button>
            <br />
            <button type="button" onclick="startFun25()">神兽签到</button>
            <button type="button" onclick="startFun26()">神兽活跃</button>
            <button type="button" onclick="startFun27()">神兽首页</button>
            <button type="button" onclick="startFun28()">部落签到</button>
            <br />
            <button type="button" onclick="startFun41()">设族斗家族</button>
            <button type="button" onclick="window.location.href = './shabi5.html'">设置秘钥</button>
            
            <div style="padding-left:10px;font-weight:bold;">
                <span id="pkid"><span id="sunum"></span></span>[<span id="pknum"></span><span id="sunums" class="dsnone"></span>]
                [<span id="setInterval"></span>]
            </div>
        </div>
        <br>
        <iframe id="ifr" src="http://129.28.24.210/home/my_home.aspx" frameborder="0"></iframe>
        <div class="div-fixed2">
            <button type="button" onclick="window.location.reload()">刷新</button><br />
            <button type="button" onclick="window.location.href = './shabi1.html'">家园</button><br />
            <button type="button" onclick="window.location.href = './shabi2.html'">斗兽</button><br />
            <button type="button" onclick="window.location.href = './shabi3.html'">每日</button><br />
            <button type="button" onclick="window.location.href = './shabi4.html'">换号</button><br />
        </div>
    </div>
    <script src="./jquery.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="./shabi.js?v4.1.2"></script>
    <script>
        var idlist = [];
        var token = '';
        var num1 = 0;
        var num2 = 600;
        var num3 = 1200;
        var max1 = 600;
        var max2 = 1200;
        var max3 = 0;
        var stoproomindex = 0;//停车位下标
        var ifr = document.getElementById("ifr");
        var end = document.getElementById("end");
        var pkid = document.getElementById("pkid");
        var start = document.getElementById("start");
        var pknum = document.getElementById("pknum");
        var sunum = document.getElementById("sunum");
        var sunums = document.getElementById("sunums");
        start.innerText = "开始时间：" + new Date();
        sunums.innerText = max3;
        pknum.innerText = 0;
        var timer1,timer2,timer3,timer4,timer5,timer6,timer7,timer8,timer9,timer10,timer11,timer12,timer13,timer14;
        var token_list = [];
        var token_list_all = [];
        var token_list_big = [];
        var zudou_list_all = [];
        // 蚂蚁家
        var zudou_mayijia = [74561, 12060, 12635, 12659, 12701, 12721, 74611, 12834, 12839, 13412, 13439, 13472, 22797, 24577, 24593, 24684, 24698, 24709, 24740, 24943, 25203, 25439, 25967, 26121, 26346, 26475, 26602, 26654, 26728, 26862, 72987, 73794, 72970, 25518, 71732, 29146, 26054, 30302, 25647, 29043, 11632, 74314, 29180, 29225, 29241, 29280, 29521, 29892, 30017, 30135, 30572, 30577, 31005, 31245, 31509, 31543, 32026, 32290, 71551, 71616, 74362];
        // 蓝爆家
        var zudou_lanbaojia = [72399,24733,73328,13349,29624,74142,72649,30923,12774,30123,25061,13333,13390,75217,29758,13363,72180,72365,12656,29272,12345,75798,75004,13365,24676,24804,13400,25708,25544,24847,24690,13395,29544,30024,12541,13401,13405,25229,25229,25709,29061,29266,30150,30519,75296,71879];
        // 忘忧谷
        var zudou_wangyougu = [12759,25031,29949,75383,29310,75727,29831,25415,12004,25778,74149,73236,73702,71496,26094,26117,31326,72918,29840,24615,11155,12675,12605,12902,13452,12754,12686,12582,12583,24807,29309,26392,26532,26629,26639,26765,26816,29010,29051,29319,29343]
        // 斗破苍穹
        var zudou_doupo = [30434,30463,30447,30457,30458,30452,30449,30443,30470,30436,30426,30423,12770,25476,12508,24924,10553,29099,24821,25458,30080,12929,31493,25270,12971,13304,12694,12789,10529,24730,12813,74614,13481,75082,13301,74673,26919,30298,71565,71565,71565,71565,71565]
        var dou_list_zudou = zudou_mayijia; // 族斗对象列表
        window.onload = function(){
            token = localStorage.getItem("texun_token");
            var zudou_index = localStorage.getItem('zudou_index');
            if(!zudou_index || zudou_index == 1){
                dou_list_zudou = zudou_mayijia
            }else if(zudou_index == 2){
                dou_list_zudou = zudou_lanbaojia
            }else if(zudou_index == 3){
                dou_list_zudou = zudou_wangyougu
            }else if(zudou_index == 4){
                dou_list_zudou = zudou_doupo
            }
            if(localStorage.getItem("texun_token_list_all")){
                token_list_all = JSON.parse(localStorage.getItem("texun_token_list_all"))
                for(var i=0;i<token_list_all.length;i++){
                    if(token_list_all[i].indexOf('31188') == -1 && token_list_all[i].indexOf('31046')){
                        zudou_list_all.push(token_list_all[i])
                    }
                }
                // console.log(token_list_all[12])
                console.log(zudou_list_all)
            }
            if(localStorage.getItem("texun_token_list")){
                token_list = JSON.parse(localStorage.getItem("texun_token_list"))
                token_list_big = JSON.parse(localStorage.getItem("texun_token_list"))
                token_list_big.unshift(token)
            }
            ifr.src = "http://129.28.24.210/bbs/index.aspx?sid=" + token;
            if(localStorage.getItem("texun_ishide") == 1){
                var btnlist = document.getElementsByClassName('btnhide') || [];
                for(var i=0;i<btnlist.length;i++){
                    var classVal = btnlist[i].getAttribute("class");
                    classVal = classVal.replace("btnhide1","");
                    btnlist[i].setAttribute("class",classVal);
                }
            }
            if(localStorage.getItem("startSmallZudou") == 1){
                localStorage.setItem('startSmallZudou',0);
                setTimeout(function() {
                    startFun29(true);
                }, 15000);
            }
            
            if(localStorage.getItem('nextTimeGetDayMask') == 1){
                localStorage.setItem('texun_isDayMask',1);
                localStorage.setItem('nextTimeGetDayMask',2);
                localStorage.setItem('texun_isDayNext_data',new Date(Date.now()+86410987).getDate());
                console.log('调用每日任务开始函数');
                setTimeout(function() {
                    startFun17();
                }, 14000);
            }
        }
        function startFun41(){
            var status = prompt("输入州府(蚂蚁家:1，蓝爆家:2，忘忧谷:3)","");
            if(status){
                localStorage.setItem("zudou_index",status);
                window.location.reload();
            }
        }
        function startFun4() {
            clearInterval(timer1);
            clearInterval(timer2);
            clearInterval(timer3);
            clearInterval(timer4);
            clearInterval(timer5);
            clearInterval(timer6);
            clearInterval(timer7);
            clearInterval(timer8);
            clearInterval(timer9);
            clearInterval(timer10);
            clearInterval(timer11);
            clearInterval(timer12);
            clearInterval(timer13);
            clearInterval(timer14);
        }
        function startFun51(){
            var token_list_all_arr = prompt("请输入秘钥","");
            if(token_list_all_arr){
                token_list_all = [];
                token_list_all_arr = token_list_all_arr.split(",")
                for(var i=0;i<token_list_all_arr.length;i++){
                    var item_token = token_list_all_arr[i];
                    token_list_all.push(item_token.slice(item_token.indexOf('sid=')+4))
                }
                localStorage.setItem("texun_token_list_all",JSON.stringify(token_list_all));
            }
        }
        var jid = [9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9800,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859,9859]
        var qiandao1 = 0;
        function startFun17(){
            timer4 = setInterval(function () {
                if (qiandao1 >= token_list_all.length) {
                    clearInterval(timer4);
                    startFun18();
                }else{
                    sunum.innerText = '';
                    pknum.innerText = qiandao1 + '  -  ' + token_list_all[qiandao1].slice(0,5);
                    ifr.src = "http://129.28.24.210/bbs/my_qid_ok.aspx?id=" + jid[qiandao1] + "&sid=" + token_list_all[qiandao1];
                    qiandao1++;
                }
            }, 1500)
        }
        var qiandao2 = 0;
        function startFun18(){
            timer5 = setInterval(function () {
                if (qiandao2 >= token_list_all.length) {
                    clearInterval(timer5);
                    startFun19();
                }else{
                    sunum.innerText = '';
                    pknum.innerText = qiandao2 + '  -  ' + token_list_all[qiandao2].slice(0,5);
                    ifr.src = "http://129.28.24.210/wml/game/arena/lqjl.aspx?sid=" + token_list_all[qiandao2];
                    qiandao2++;
                }
            }, 1600)
        }
        var qiandao3 = 0;
        function startFun19(){
            timer6 = setInterval(function () {
                if (qiandao3 >= token_list_all.length) {
                    clearInterval(timer6);
                    startFun191();
                }else{
                    sunum.innerText = '';
                    pknum.innerText = qiandao3 + '  -  ' + token_list_all[qiandao3].slice(0,5);
                    ifr.src = "http://129.28.24.210/game/garden/user/my_qd.aspx?sid=" + token_list_all[qiandao3];
                    qiandao3++;
                }
            }, 1500)
        }
        var qiandao31 = 0;
        function startFun191(){
            timer6 = setInterval(function () {
                if (qiandao31 >= token_list_all.length) {
                    clearInterval(timer6);
                    startFun20();
                }else{
                    sunum.innerText = '';
                    pknum.innerText = qiandao31 + '  -  ' + token_list_all[qiandao31].slice(0,5);
                    ifr.src = "http://129.28.24.210/game/xbhd/lqjl.aspx?id=29&sid=" + token_list_all[qiandao31];
                    qiandao31++;
                }
            }, 1500)
        }
        var qiandao4 = 0;
        function startFun20(){
            timer7 = setInterval(function () {
                if (qiandao4 >= token_list_all.length) {
                    clearInterval(timer7);
                    startFun21();
                }else{
                    sunum.innerText = '';
                    pknum.innerText = qiandao4 + '  -  ' + token_list_all[qiandao4].slice(0,5);
                    ifr.src = "http://129.28.24.210/home/my_home.aspx?sid=" + token_list_all[qiandao4];
                    qiandao4++;
                }
            }, 1500)
        }
        var qiandao5 = 0;
        function startFun21(){
            timer8 = setInterval(function () {
                if (qiandao5 >= token_list_all.length) {
                    clearInterval(timer8);
                    startFun25();
                }else{
                    sunum.innerText = '';
                    pknum.innerText = qiandao5 + '  -  ' + token_list_all[qiandao5].slice(0,5);
                    ifr.src = "http://129.28.24.210/bbs/my_family.aspx?&sid=" + token_list_all[qiandao5];
                    qiandao5++;
                }
            }, 1700)
        }
        var qiandao6 = 0;
        function startFun22(){
            timer9 = setInterval(function () {
                if (qiandao6 >= token_list_all.length) {
                    clearInterval(timer9);
                    startFun23();
                }else{
                    sunum.innerText = '';
                    pknum.innerText = qiandao6;
                    ifr.src = "http://129.28.24.210/bbs/famiy_wee.aspx?id=" + jid[qiandao6] + "&sid=" + token_list_all[qiandao6];
                    qiandao6++;
                }
            }, 1500)
        }
        var qiandao7 = 0;
        function startFun23(){
            timer10 = setInterval(function () {
                if (qiandao7 >= token_list_all.length) {
                    clearInterval(timer10);
                    localStorage.setItem('texun_isDayMask',2);
                    setTimeout(function() {
                        window.location.href = './shabi1.html';
                    }, 30);
                }else{
                    sunum.innerText = '';
                    pknum.innerText = qiandao7;
                    ifr.src = "http://129.28.24.210/bbs/family_wee.aspx?id=" + jid[qiandao7] + "&sid=" + token_list_all[qiandao7];
                    qiandao7++;
                }
            }, 1500)
        }
        var qiandao9 = 0;
        function startFun25(){
            timer12 = setInterval(function () {
                if (qiandao9 >= token_list_all.length) {
                    clearInterval(timer12);
                    startFun26();
                }else{
                    sunum.innerText = '';
                    pknum.innerText = qiandao9 + '  -  ' + token_list_all[qiandao9].slice(0,5);
                    ifr.src = "http://129.28.24.210/game/ssyx/hd.aspx?id=5&oid=1&sid=" + token_list_all[qiandao9] + '&act=ok';
                    qiandao9++;
                }
            }, 1500)
        }
        var qiandao10 = 0;
        function startFun26(){
            timer13 = setInterval(function () {
                if (qiandao10 >= token_list_all.length) {
                    clearInterval(timer13);
                    startFun27();
                }else{
                    sunum.innerText = '';
                    pknum.innerText = qiandao10 + '  -  ' + token_list_all[qiandao10].slice(0,5);
                    ifr.src = "http://129.28.24.210/game/ssyx/hd.aspx?id=1&oid=1&sid=" + token_list_all[qiandao10] + '&act=ok';
                    qiandao10++;
                }
            }, 1500)
        }
        var qiandao11 = 0;
        function startFun27(){
            timer14 = setInterval(function () {
                if (qiandao11 >= token_list_all.length) {
                    clearInterval(timer14);
                    startFun28();
                }else{
                    sunum.innerText = '';
                    pknum.innerText = qiandao11 + '  -  ' + token_list_all[qiandao11].slice(0,5);
                    ifr.src = "http://129.28.24.210/game/ssyx/?sid=" + token_list_all[qiandao11];
                    qiandao11++;
                }
            }, 1500)
        }
        
        var qiandao12 = 0;
        var buluoId = [1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002,1002]
        function startFun28(){
            var token_list_big_new = JSON.parse(JSON.stringify(token_list_big))
            token_list_big_new.push(token_list_all[12])
            token_list_big_new.push(token_list_all[31])
            timer14 = setInterval(function () {
                if (qiandao12 >= token_list_big_new.length) {
                    clearInterval(timer14);
                    startFun30();
                }else{
                    sunum.innerText = '';
                    pknum.innerText = qiandao12 + '  -  ' + token_list_big_new[qiandao12].slice(0,5);
                    ifr.src = "http://129.28.24.210/game/ssyx/blqd.aspx?id=" + buluoId[qiandao12] + "&act=ok&sid=" + token_list_big_new[qiandao12];
                    qiandao12++;
                }
            }, 1500)
        }
        var zhaizi = 0;
        function startFun30(){
            timer14 = setInterval(function () {
                if (zhaizi >= token_list_all.length) {
                    clearInterval(timer14);
                    startFun31();
                }else{
                    sunum.innerText = '';
                    pknum.innerText = zhaizi + '  -  ' + token_list_all[zhaizi].slice(0,5);
                    ifr.src = "http://129.28.24.210/game/zhaizi/zs.aspx?id=31046&sid=" + token_list_all[zhaizi];
                    zhaizi++;
                }
            }, 1500)
        }
        var zhaiziqiandao = 0;
        function startFun31(){
            timer14 = setInterval(function () {
                if (zhaiziqiandao >= token_list_all.length) {
                    clearInterval(timer14);
                    startFun22();
                }else{
                    sunum.innerText = '';
                    pknum.innerText = zhaiziqiandao + '  -  ' + token_list_all[zhaiziqiandao].slice(0,5);
                    ifr.src = "http://129.28.24.210/game/zhaizi/vip.aspx?act=ok&sid=" + token_list_all[zhaiziqiandao];
                    zhaiziqiandao++;
                }
            }, 1500)
        }
        var douLenZudou = 0; // 族斗单个次数，5个
        var douIndexZudou = 0; // 族斗下标  // [11003,12038,12261];
        function startFun29(isNew){
            var dou_idx_prompt;
            if(!isNew){
                dou_idx_prompt = prompt("请输入开始下标（数字0 ~ " + (zudou_list_all.length-1) + "）","");
            }
            if(dou_idx_prompt){
                douIndexZudou  = parseInt(dou_idx_prompt)
            }
            pknum.innerText = douIndexZudou
            // ifr.src = "http://129.28.24.210/bbs/bu.aspx?bid=9859&bt=2&sid=" + zudou_list_all[douIndexZudou]; // 回族斗主页
            ifr.src = "http://129.28.24.210/bbs/family_cybm.aspx?bid=9859&sid=" + zudou_list_all[douIndexZudou]; // 族斗参战
            timer1 = setInterval(function () {
                ifr.src = "http://129.28.24.210/bbs/profile.aspx?id=" + dou_list_zudou[douIndexZudou] + "&sid=" + zudou_list_all[douIndexZudou]; // 族斗开始
                douLenZudou++
                if(douLenZudou>=8){
                    clearInterval(timer1);
                    setTimeout(function(){
                        douLenZudou = 0;
                        douIndexZudou++;
                        if(douIndexZudou>=zudou_list_all.length){
                            localStorage.removeItem('nextTimeGetDayZudou')
                            localStorage.setItem('texun_isDayMask',2);
                            localStorage.setItem('texun_isDayNext_zudou',new Date(Date.now()+86410987).getDate());
                            setTimeout(function(){
                                window.location.reload();
                            },1000)
                        }else{
                            startFun29(true);
                        }
                    },1500)
                }
            }, 1500)
        }
    </script>
</body>

</html>